package com.cy.ppj.model.ao.company;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * @description: 新增公司
 * @author: Ocean
 * @create: 2018-08-03 17:35
 **/
@Data
@ApiModel("新增公司")
public class CompanyAddAO {

    @ApiModelProperty(value = "业务员手机号码")
    private String salesMobile;

    @ApiModelProperty(value = "公司名称", required = true)
    @NotEmpty(message = "公司名称不可为空")
    private String name;

    @ApiModelProperty(value = "公司编号", required = true)
    @NotEmpty(message = "公司编号不可为空")
    private String no;

    @ApiModelProperty(value = "联系人", required = true)
    @NotEmpty(message = "联系人不可为空")
    private String contact;

    @ApiModelProperty(value = "联系人号码", required = true)
    @NotEmpty(message = "联系人号码不可为空")
    private String contactMobile;

    @ApiModelProperty(value = "是否统一收佣", required = true)
    @NotNull(message = "是否统一收佣不可为空")
    private Boolean collectCommission;

}
